package com.cloudlinkscm.base.filecenter.assemblers;

import com.cloudlinkscm.base.filecenter.model.bo.DocumentSaveBo;
import com.cloudlinkscm.base.filecenter.model.dto.DocumentUploadDto;
import com.cloudlinkscm.loms.framework.core.pojo.SingleAssembler;
import org.springframework.stereotype.Component;

/**
 * @author : tac
 * @date : 2017/7/24
 */
@Component
public class DocumentUploadDto2DocumentSaveBoAssembler implements SingleAssembler<DocumentUploadDto, DocumentSaveBo> {
    @Override
    public DocumentSaveBo assemble(DocumentUploadDto documentUploadDto) {
        DocumentSaveBo bo = new DocumentSaveBo();
        bo.setId(documentUploadDto.getFileId());
        bo.setSysCode(documentUploadDto.getSysCode());
        return bo;
    }
}
